package com.itboye.mybatis.mapper;

import java.util.HashMap;
import java.util.List;

/**
 * Created by hebidu on 16/7/21.
 */
public interface IBaseMapper<T> {

    int update(HashMap params);

    int batchInsert(List<T> list);

    int insert(T model);

    T getInfo(int id);

    T getInfoBy(HashMap params);

    T getInfoBy(HashMap params,String fields,String orders);

    List<T> query(HashMap params);


}
